<?php
echo $this->adminToolBar('user', 'edit', '/admin/user/doadduser/', '/admin/user/edituser/', '/admin/user/deleteuser/', '/admin/user/index/');
?>
<?php
foreach ($this->getUserDetails as $userArr) :
	$firstname = $userArr['firstname'];
	$lastname = $userArr['lastname'];
	$nickname = $userArr['nickname'];
	$email = $userArr['email_address'];
	$status = $userArr['status'];
	//$acl_arr = $userArr['acl'];
	
	
	
endforeach;;
?>
<!--<form action="/admin/user/doedituser/userid/<?php //echo $this->userid; ?>" method="post" enctype="multipart/form-data" name="frmAdUser">-->
	<table border="0" width="100%">
		<tbody>
			<tr>
				<td style="padding-top: 6px;" valign="top" width="60%">
					<table class="form_listing" cellpadding="0" cellspacing="0" width="100%">
						<tbody>
							<tr class="even">
								<th valign="top">* Nickname</th>								
							</tr>
							<tr>
								<td><input name="nickname" value="<?php echo $nickname; ?>" id="n_name" class="input-2" longdesc="Please enter nick name" type="text" readonly="readonly" /></td>
							</tr>
							<tr class="even">
								<td valign="top">&nbsp;</td>								
							</tr>
							<tr class="odd">
								<th valign="top">* First Name</th>								
							</tr>
							<tr>
								<td><input name="firstname" value="<?php echo $firstname; ?>" id="f_name" class="input-2" longdesc="Please enter first name" type="text" /></td>
							</tr>
							<tr class="even">
								<td valign="top">&nbsp;</td>								
							</tr>
							<tr class="even">
								<th valign="top">* Last Name</th>								
							</tr>
							<tr>
								<td><input name="lastname" value="<?php echo $lastname; ?>" id="l_name" class="input-2" longdesc="Please enter last name" type="text" /></td>
							</tr>
							<tr class="even">
								<td valign="top">&nbsp;</td>								
							</tr>
							<tr class="odd">
								<th valign="top">* Email</th>								
							</tr>
							<tr>
								<td><input name="email" value="<?php echo $email; ?>" id="email" class="input-2" longdesc="Please enter email address" type="text" /></td>
							</tr>
							<tr class="even">
								<td valign="top">&nbsp;</td>								
							</tr>
							<tr class="odd">
								<th valign="top">* User Level</th>								
							</tr>									
							<tr>
								<td>
									<select name="userlevel" id="userlevel" class="input-2">
										<option value="admin">Admin</option>
										<option value="author">Author</option>
									</select>
								</td>
							</tr>
							<tr class="even">
								<td valign="top">&nbsp;</td>								
							</tr>					
							<tr class="odd">
								<th valign="top">* Status</th>								
							</tr>
							<tr>
								<td>
									<select name="status" id="status" class="input-2">
										<option value="1" <?php echo ($status == 1)?"selected='selected'" : ""?>>Active</option>
										<option value="0" <?php echo ($status == 0)?"selected='selected'" : ""?>>Inactive</option>
									</select>
								</td>
							</tr>
						</tbody>
					</table>            
				</td>
                
            </tr>
        </tbody>
	</table>	             
    <input type="hidden" name="userid" id="userid" value="<?php echo $this->userid; ?>" />  
	<div id="editpassword" style="display:none;" title="Forget Password">
	    <div id="frmeditpassword"></div>
	</div>